﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace AbpToDomain.EntityInfo
{
    //物料清单
    public class MaterialOrder:Entity
    {
        [Key]
        public Guid Id_MaterialOder {  get; set; }
        [Comment("工单名")]
        public string MaterialOrderName {  get; set; }
        [Comment("入库or出库")]
        public string Type {  get; set; }
        public DateTime CreateDate { get; set; }    
        //foreignkey
        public List<MaterialBase>? materialBases { get; set; } = new List<MaterialBase>();
        public List<WorkerOrder> workerOrders { get; set; }=new List<WorkerOrder>();
       
        public override object[] GetKeys()
        {
            return new object[] { Id_MaterialOder };
        }

        public MaterialOrder()
        {
            CreateDate = DateTime.Now;
        }
    }


}
